package cn.tedu.you;

public class Test2 {
	public static void main(String[] args) {
		for (int a = 1; a <= 3; a++) {
			System.out.println(a);
			for (int b = 1; b <= 5; b++) {
				System.out.println(b);
			}
		}

		System.out.println();

		for (int a = 1; a <= 5; a++) {
			for (int b = 1; b <= 4; b++) {
				System.out.print("*");
			}
			System.out.println();
		}

		for (int b = 1; b <= 6; b++) {
			if (b <= 1) {
				System.out.println("*");
			} else if (b <= 2) {
				System.out.println("**");
			} else if (b <= 3) {
				System.out.println("***");
			} else if (b <= 4) {
				System.out.println("****");
			} else if (b <= 5) {
				System.out.println("*****");
			} else {
				System.out.println("******");
			}
		}
		System.out.println();

		for (int a = 1; a <= 5; a++) {
			for (int b = 1; b <= a; b++) {
				System.out.print("*");
			}
			System.out.println();
		}

		for (int a = 5; a >= 1; a--) {
			for (int b = 5; b >= a; b--) {
				System.out.print("*");
			}
			System.out.println();
		}

	}
}
